package com.yunyike.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunyike.mapper.OrderReceiptMappingMapper;
import com.yunyike.model.OrderReceiptMapping;
import com.yunyike.service.IOrderReceiptMappingService;

@Service("orderReceiptMappingServiceImpl")
public class OrderReceiptMappingServiceImpl implements IOrderReceiptMappingService {

	private static Logger log = LoggerFactory.getLogger(OrderReceiptMappingServiceImpl.class);

	@Autowired
	private OrderReceiptMappingMapper orderReceiptMappingMapper;
	
	public List<OrderReceiptMapping> selectByOrderId(String orderId) {
		return orderReceiptMappingMapper.selectByOrderId(orderId);
	}

	public int deleteByPrimaryKey(String orderReceiptMappingId) {
		return orderReceiptMappingMapper.deleteByPrimaryKey(orderReceiptMappingId);
	}

	public int insert(OrderReceiptMapping record) {
		return orderReceiptMappingMapper.insert(record);
	}

	public int insertSelective(OrderReceiptMapping record) {
		return orderReceiptMappingMapper.insertSelective(record);
	}

	public OrderReceiptMapping selectByPrimaryKey(String orderReceiptMappingId) {
		return orderReceiptMappingMapper.selectByPrimaryKey(orderReceiptMappingId);
	}

	public int updateByPrimaryKeySelective(OrderReceiptMapping record) {
		return orderReceiptMappingMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(OrderReceiptMapping record) {
		return orderReceiptMappingMapper.updateByPrimaryKey(record);
	}
	
	
	
	
}
